﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
	<CustomAction
		  Id="Ribbon.DialogHelper.Script"
		  Location="ScriptLink"
		  ScriptSrc="/_layouts/BoldBrick.SharePoint.CommonControls/JS/DialogHelper.js"
	/>
	<CustomAction
		Id="Ribbon.Workflows.Script"
		Location="ScriptLink"
		ScriptSrc="/_layouts/BoldBrick.OneIntranet.HR/JS/Workflows.js"
	/>
	<CustomAction Id="Ribbon.Workflows.Open"
		RegistrationId="0x0100FAF3E03D4A0E42FC93F208DFEDA7E407"
		RegistrationType="ContentType"
		Location="CommandUI.Ribbon"
		Title="$Resources: BoldBrick.OneIntranet.HR, Ribbon_Workflows_Reorder"
	>
		<CommandUIExtension>
			<CommandUIDefinitions>
				<CommandUIDefinition Location="Ribbon.ListItem.Actions.Controls._children">
					<Button Id="Ribbon.Workflows.Reorder.Button"
							LabelText="$Resources: BoldBrick.OneIntranet.HR, Ribbon_Workflows_Reorder_LabelText"
							TemplateAlias="o1"
							Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-192" Image16by16Left="-144"
							Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-192" Image32by32Left="-288"
							Sequence="31"
							Command="Command.Ribbon.Workflows.Reorder" />
				</CommandUIDefinition>
			</CommandUIDefinitions>
			<CommandUIHandlers>
				<CommandUIHandler Command="Command.Ribbon.Workflows.Reorder"
				CommandAction="javascript:ShowDialog('{SiteUrl}/_layouts/BoldBrick.OneIntranet.HR/Reorder.aspx?List={ListId}&amp;Source=' + escape(window.location), null, null, null, null, true);"
				EnabledScript="javascript:CanReorderItems();"
				/>
			</CommandUIHandlers>
		</CommandUIExtension>
	</CustomAction>

</Elements>